package com.hand.test.service;/**
 * @author Estelle@앙수청
 * @date 2019/7/20 9:26
 */

import com.hand.test.domain.Matter;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 *  @author Estelle@앙수청
 *  @date 2019/7/20 9:26
 */

public interface MatterService {

    List<Matter> queryAllMatter();

    Matter queryMatterById(Integer id);

    Integer addMatter(Matter matter);

    void updateMatter(Matter matter);

    @Transactional(rollbackFor = Exception.class)
    void deleteMatter(Integer id);
}
